package com.huynhchihieu.javacore;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	public static void main(String[] args) throws ClassNotFoundException, SQLException {
//		Class.forName("com.mysql.jdbc.Driver");
//		 Connection con = DriverManager.getConnection("jdbc:mysql://localhost/mytest", "root", "");
//		 Statement st = con.createStatement();
//		 st.execute("insert into student values(1, 'hieu', 'gia an dong')");
		//System.out.println(Math.ceil(3/4));
		String patternString = "\\b[a-zA-Z0-9]+";
		Pattern pattern = Pattern.compile(patternString);
		Matcher matcher = pattern.matcher("?huynhchi hieu");
		while(matcher.find()){
			System.out.println(matcher.group());
		}
	}
}
